const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
    transpileDependencies: true,
    devServer: {
        proxy: {
            '/yl': {
                target: 'http://192.168.1.11:3000',
                changeOrigin: true,
                pathRewrite: {
                    '^/yl': ''
                }
            },
            '/hyl': {
                target: 'http://192.168.3.174:3000',
                changeOrigin: true,
                pathRewrite: {
                    '^/hyl': ''
                }
            },
            '/lwf': {
                target: 'http://192.168.3.181:3000',
                changeOrigin: true,
                pathRewrite: {
                    '^/lwf': ''
                }
            },
            '/qj': {
                target: 'http://192.168.3.205:3000',
                changeOrigin: true,
                pathRewrite: {
                    '^/qj': ''
                }
            },
            '/xjh': {
                target: 'http://192.168.3.195:3000',
                changeOrigin: true,
                pathRewrite: {
                    '^/xjh': ''
                }
            },
            '/ljh': {
                target: 'http://192.168.3.172:3000',
                changeOrigin: true,
                pathRewrite: {
                    '^/ljh': ''
                }
            },
            '/ch': {
                target: 'http://192.168.3.183:3000',
                changeOrigin: true,
                pathRewrite: {
                    '^/ch': ''
                }
            },
            '/lky': {
                target: 'http://192.168.3.173:3000',
                changeOrigin: true,
                pathRewrite: {
                    '^/lky': ''
                }
            }
        }
    }
})